<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form" action=""  method="post" id="cp-form">.

            <div class="layui-form-item">
                <label class="layui-form-label">名称 <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <input type="text" value="{$role.title}" name="title" required  lay-verify="required" placeholder="菜单名称" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">状态  <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <input type="radio" name="status" value="1" title="启用" {eq name="$role.status" value="1"}checked{/eq}>
                    <input type="radio" name="status" value="0" title="禁用" {eq name="$role.status" value="0"}checked{/eq}>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <input type="hidden" name="id" value="{$role.id}">
                    <div class="layui-text">带 * 号的为必填项</div>
                    <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                    <a href="{:url('admin/system.role/index')}" class="layui-btn layui-btn-primary" >返回</a>
                </div>
            </div>
        </form>
    </div>
</div>
